]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs: create file_readable() and file_writable() functions
authorDave Kleikamp <dave.kleikamp@oracle.com>
Fri, 14 Jun 2013 20:54:20 +0000 (15:54 -0500)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Fri, 9 Aug 2013 21:43:37 +0000 (16:43 -0500)
commitd3267ad39dc58a6fd963fb58d359d7abd531b21f
tree5a8cfd6a96e4aad992a880a1ebe12f570afd43f9
parent60360803f553be66708fd06565d9b45388a3b33e
fs: create file_readable() and file_writable() functions

Create functions to simplify if file_ops contain either a read
or aio_read op, or likewise write or aio_write. We will be adding
read_iter and write_iter and don't need to be complicating the code
in multiple places.

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
drivers/mtd/nand/nandsim.c
drivers/usb/gadget/storage_common.c
fs/read_write.c
include/linux/fs.h