diff options
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.c | 3 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_file.c | 2 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 9 |
3 files changed, 12 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c index b2b411985591..d1fe74506c4c 100644 --- a/fs/xfs/linux-2.6/xfs_buf.c +++ b/fs/xfs/linux-2.6/xfs_buf.c | |||
@@ -1224,6 +1224,9 @@ _xfs_buf_ioapply( | |||
1224 | rw = READ; | 1224 | rw = READ; |
1225 | } | 1225 | } |
1226 | 1226 | ||
1227 | /* we only use the buffer cache for meta-data */ | ||
1228 | rw |= REQ_META; | ||
1229 | |||
1227 | next_chunk: | 1230 | next_chunk: |
1228 | atomic_inc(&bp->b_io_remaining); | 1231 | atomic_inc(&bp->b_io_remaining); |
1229 | nr_pages = BIO_MAX_SECTORS >> (PAGE_SHIFT - BBSHIFT); | 1232 | nr_pages = BIO_MAX_SECTORS >> (PAGE_SHIFT - BBSHIFT); |
diff --git a/fs/xfs/linux-2.6/xfs_file.c b/fs/xfs/linux-2.6/xfs_file.c index 825390e1c138..7f7b42469ea7 100644 --- a/fs/xfs/linux-2.6/xfs_file.c +++ b/fs/xfs/linux-2.6/xfs_file.c | |||
@@ -149,7 +149,9 @@ xfs_file_fsync( | |||
149 | 149 | ||
150 | xfs_iflags_clear(ip, XFS_ITRUNCATED); | 150 | xfs_iflags_clear(ip, XFS_ITRUNCATED); |
151 | 151 | ||
152 | xfs_ilock(ip, XFS_IOLOCK_SHARED); | ||
152 | xfs_ioend_wait(ip); | 153 | xfs_ioend_wait(ip); |
154 | xfs_iunlock(ip, XFS_IOLOCK_SHARED); | ||
153 | 155 | ||
154 | if (mp->m_flags & XFS_MOUNT_BARRIER) { | 156 | if (mp->m_flags & XFS_MOUNT_BARRIER) { |
155 | /* | 157 | /* |
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index 6544c3236bc8..b9c172b3fbbe 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c | |||
@@ -1194,9 +1194,14 @@ xfs_setup_inode( | |||
1194 | break; | 1194 | break; |
1195 | } | 1195 | } |
1196 | 1196 | ||
1197 | /* if there is no attribute fork no ACL can exist on this inode */ | 1197 | /* |
1198 | if (!XFS_IFORK_Q(ip)) | 1198 | * If there is no attribute fork no ACL can exist on this inode, |
1199 | * and it can't have any file capabilities attached to it either. | ||
1200 | */ | ||
1201 | if (!XFS_IFORK_Q(ip)) { | ||
1202 | inode_has_no_xattr(inode); | ||
1199 | cache_no_acl(inode); | 1203 | cache_no_acl(inode); |
1204 | } | ||
1200 | 1205 | ||
1201 | xfs_iflags_clear(ip, XFS_INEW); | 1206 | xfs_iflags_clear(ip, XFS_INEW); |
1202 | barrier(); | 1207 | barrier(); |