summaryrefslogtreecommitdiff
path: root/fs/udf/inode.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2017-02-06 17:59:47 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2017-02-06 17:59:47 +1100
commit3424e82515bf0781df6fe6e621ce4bdfa4bf4a16 (patch)
tree1da0c5f1055d557d12b0d766db70bbe83fa200b1 /fs/udf/inode.c
parent71942a3b7471b768b07095731928558fd18a831d (diff)
parent46c3b4fb248255cf78eb4680802b1ce411bcd87d (diff)
Merge branch 'akpm/master'
Diffstat (limited to 'fs/udf/inode.c')
-rw-r--r--fs/udf/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/inode.c b/fs/udf/inode.c
index 8ec6b3df0bc7..a8d8f71ef8bd 100644
--- a/fs/udf/inode.c
+++ b/fs/udf/inode.c
@@ -1193,7 +1193,7 @@ int udf_setsize(struct inode *inode, loff_t newsize)
{
int err;
struct udf_inode_info *iinfo;
- int bsize = 1 << inode->i_blkbits;
+ int bsize = i_blocksize(inode);
if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
S_ISLNK(inode->i_mode)))