Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253837
b: refs/heads/master
c: 730e908
h: refs/heads/master
i:
  253835: 54e2b84
v: v3
  • Loading branch information
Al Viro committed Jun 20, 2011
1 parent bec1c69 commit be9987b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: a63ab94d67879bc0630ea9821c582ddf58ba5527
refs/heads/master: 730e908f3539066d4aa01f4720ebfc750ce4d045
7 changes: 1 addition & 6 deletions trunk/fs/nilfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,12 +801,7 @@ int nilfs_setattr(struct dentry *dentry, struct iattr *iattr)

int nilfs_permission(struct inode *inode, int mask, unsigned int flags)
{
struct nilfs_root *root;

if (flags & IPERM_FLAG_RCU)
return -ECHILD;

root = NILFS_I(inode)->i_root;
struct nilfs_root *root = NILFS_I(inode)->i_root;
if ((mask & MAY_WRITE) && root &&
root->cno != NILFS_CPTREE_CURRENT_CNO)
return -EROFS; /* snapshot is not writable */
Expand Down

0 comments on commit be9987b

Please sign in to comment.