diff options
author | Salah Triki <salah.triki@gmail.com> | 2016-07-23 14:36:42 +0200 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-10-08 11:01:12 +0200 |
commit | f7f675406be6eb3736a8690217d7b41d60f6a1aa (patch) | |
tree | 705249484cabc9add57f29ca27c92627d8af0001 /fs/befs/io.c | |
parent | befs: remove unused functions (diff) | |
download | linux-f7f675406be6eb3736a8690217d7b41d60f6a1aa.tar.xz linux-f7f675406be6eb3736a8690217d7b41d60f6a1aa.zip |
fs: befs: replace befs_bread by sb_bread
Since befs_bread merely calls sb_bread, replace it by sb_bread.
Link: http://lkml.kernel.org/r/1466800258-4542-1-git-send-email-salah.triki@gmail.com
Signed-off-by: Salah Triki <salah.triki@gmail.com>
Acked-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/befs/io.c')
-rw-r--r-- | fs/befs/io.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/fs/befs/io.c b/fs/befs/io.c index 523c8af2d770..4223b779fcc4 100644 --- a/fs/befs/io.c +++ b/fs/befs/io.c @@ -59,27 +59,3 @@ befs_bread_iaddr(struct super_block *sb, befs_inode_addr iaddr) befs_debug(sb, "<--- %s ERROR", __func__); return NULL; } - -struct buffer_head * -befs_bread(struct super_block *sb, befs_blocknr_t block) -{ - struct buffer_head *bh; - - befs_debug(sb, "---> Enter %s %lu", __func__, (unsigned long)block); - - bh = sb_bread(sb, block); - - if (bh == NULL) { - befs_error(sb, "Failed to read block %lu", - (unsigned long)block); - goto error; - } - - befs_debug(sb, "<--- %s", __func__); - - return bh; - - error: - befs_debug(sb, "<--- %s ERROR", __func__); - return NULL; -} |