[PATCH] isofs: use i_blocksize()
From: Geliang Tang
Date: Fri Jan 20 2017 - 09:30:25 EST
Since i_blocksize() helper has been defined in fs.h, use it instead
of open-coding.
Signed-off-by: Geliang Tang <geliangtang@xxxxxxxxx>
---
fs/isofs/rock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/isofs/rock.c b/fs/isofs/rock.c
index 0ec1373..038728b 100644
--- a/fs/isofs/rock.c
+++ b/fs/isofs/rock.c
@@ -84,7 +84,7 @@ static void init_rock_state(struct rock_state *rs, struct inode *inode)
static int rock_continue(struct rock_state *rs)
{
int ret = 1;
- int blocksize = 1 << rs->inode->i_blkbits;
+ int blocksize = i_blocksize(rs->inode);
const int min_de_size = offsetof(struct rock_ridge, u);
kfree(rs->buffer);
--
2.9.3