Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125479
b: refs/heads/master
c: a9f2fc0
h: refs/heads/master
i:
  125477: 7e72c8c
  125475: 54a0dd5
  125471: cfaa846
v: v3
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Dec 31, 2008
1 parent c09d13b commit 64f5164
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f92b982680e4b4149c559789a54e1e9db190752a
refs/heads/master: a9f2fc0e251e71a51deb8059b181c375a4a5e979
2 changes: 2 additions & 0 deletions trunk/fs/ubifs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ long ubifs_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
case FS_IOC_GETFLAGS:
flags = ubifs2ioctl(ubifs_inode(inode)->flags);

dbg_gen("get flags: %#x, i_flags %#x", flags, inode->i_flags);
return put_user(flags, (int __user *) arg);

case FS_IOC_SETFLAGS: {
Expand All @@ -176,6 +177,7 @@ long ubifs_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
err = mnt_want_write(file->f_path.mnt);
if (err)
return err;
dbg_gen("set flags: %#x, i_flags %#x", flags, inode->i_flags);
err = setflags(inode, flags);
mnt_drop_write(file->f_path.mnt);
return err;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ubifs/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ int ubifs_jnl_write_data(struct ubifs_info *c, const struct inode *inode,
data->size = cpu_to_le32(len);
zero_data_node_unused(data);

if (!(ui->flags && UBIFS_COMPR_FL))
if (!(ui->flags & UBIFS_COMPR_FL))
/* Compression is disabled for this inode */
compr_type = UBIFS_COMPR_NONE;
else
Expand Down

0 comments on commit 64f5164

Please sign in to comment.