aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/udf/inode.c')
-rw-r--r--fs/udf/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/udf/inode.c b/fs/udf/inode.c
index c7da1a32b364..b57ab0402d89 100644
--- a/fs/udf/inode.c
+++ b/fs/udf/inode.c
@@ -1379,12 +1379,12 @@ static mode_t udf_convert_permissions(struct fileEntry *fe)
1379 return mode; 1379 return mode;
1380} 1380}
1381 1381
1382int udf_write_inode(struct inode *inode, int sync) 1382int udf_write_inode(struct inode *inode, struct writeback_control *wbc)
1383{ 1383{
1384 int ret; 1384 int ret;
1385 1385
1386 lock_kernel(); 1386 lock_kernel();
1387 ret = udf_update_inode(inode, sync); 1387 ret = udf_update_inode(inode, wbc->sync_mode == WB_SYNC_ALL);
1388 unlock_kernel(); 1388 unlock_kernel();
1389 1389
1390 return ret; 1390 return ret;
@@ -1678,7 +1678,7 @@ int8_t udf_add_aext(struct inode *inode, struct extent_position *epos,
1678 return -1; 1678 return -1;
1679 1679
1680 if (epos->offset + (2 * adsize) > inode->i_sb->s_blocksize) { 1680 if (epos->offset + (2 * adsize) > inode->i_sb->s_blocksize) {
1681 char *sptr, *dptr; 1681 unsigned char *sptr, *dptr;
1682 struct buffer_head *nbh; 1682 struct buffer_head *nbh;
1683 int err, loffset; 1683 int err, loffset;
1684 struct kernel_lb_addr obloc = epos->block; 1684 struct kernel_lb_addr obloc = epos->block;