diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_iops.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index 225946012d0b..61a99608731e 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c | |||
@@ -91,6 +91,16 @@ xfs_mark_inode_dirty_sync( | |||
91 | mark_inode_dirty_sync(inode); | 91 | mark_inode_dirty_sync(inode); |
92 | } | 92 | } |
93 | 93 | ||
94 | void | ||
95 | xfs_mark_inode_dirty( | ||
96 | xfs_inode_t *ip) | ||
97 | { | ||
98 | struct inode *inode = VFS_I(ip); | ||
99 | |||
100 | if (!(inode->i_state & (I_WILL_FREE|I_FREEING|I_CLEAR))) | ||
101 | mark_inode_dirty(inode); | ||
102 | } | ||
103 | |||
94 | /* | 104 | /* |
95 | * Change the requested timestamp in the given inode. | 105 | * Change the requested timestamp in the given inode. |
96 | * We don't lock across timestamp updates, and we don't log them but | 106 | * We don't lock across timestamp updates, and we don't log them but |
@@ -140,10 +150,10 @@ xfs_init_security( | |||
140 | struct xfs_inode *ip = XFS_I(inode); | 150 | struct xfs_inode *ip = XFS_I(inode); |
141 | size_t length; | 151 | size_t length; |
142 | void *value; | 152 | void *value; |
143 | char *name; | 153 | unsigned char *name; |
144 | int error; | 154 | int error; |
145 | 155 | ||
146 | error = security_inode_init_security(inode, dir, &name, | 156 | error = security_inode_init_security(inode, dir, (char **)&name, |
147 | &value, &length); | 157 | &value, &length); |
148 | if (error) { | 158 | if (error) { |
149 | if (error == -EOPNOTSUPP) | 159 | if (error == -EOPNOTSUPP) |