aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/lcnalloc.c
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2005-03-07 16:43:38 -0500
committerAnton Altaparmakov <aia21@cantab.net>2005-05-05 06:20:49 -0400
commitc0c1cc0e46b36347f11b566f99087dc5e6fc1b89 (patch)
tree773105bdde7454d10dccc127048a9847f7e01f11 /fs/ntfs/lcnalloc.c
parent271849a98849394ea85fa7caa8a1aaa2b3a849b7 (diff)
NTFS: - Fix bug in fs/ntfs/attrib.c::ntfs_find_vcn_nolock() where after
dropping the read lock and taking the write lock we were not checking whether someone else did not already do the work we wanted to do. - Rename ntfs_find_vcn_nolock() to ntfs_attr_find_vcn_nolock(). - Tidy up some comments in fs/ntfs/runlist.c. - Add LCN_ENOMEM and LCN_EIO definitions to fs/ntfs/runlist.h. Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/lcnalloc.c')
-rw-r--r--fs/ntfs/lcnalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ntfs/lcnalloc.c b/fs/ntfs/lcnalloc.c
index f2b7f8582c59..6e584ab743c5 100644
--- a/fs/ntfs/lcnalloc.c
+++ b/fs/ntfs/lcnalloc.c
@@ -850,7 +850,7 @@ s64 __ntfs_cluster_free(struct inode *vi, const VCN start_vcn, s64 count,
850 850
851 /* This returns with ni->runlist locked for reading on success. */ 851 /* This returns with ni->runlist locked for reading on success. */
852 down_read(&ni->runlist.lock); 852 down_read(&ni->runlist.lock);
853 rl = ntfs_find_vcn_nolock(ni, start_vcn, FALSE); 853 rl = ntfs_attr_find_vcn_nolock(ni, start_vcn, FALSE);
854 if (IS_ERR(rl)) { 854 if (IS_ERR(rl)) {
855 if (!is_rollback) 855 if (!is_rollback)
856 ntfs_error(vol->sb, "Failed to find first runlist " 856 ntfs_error(vol->sb, "Failed to find first runlist "
@@ -904,7 +904,7 @@ s64 __ntfs_cluster_free(struct inode *vi, const VCN start_vcn, s64 count,
904 904
905 /* Attempt to map runlist. */ 905 /* Attempt to map runlist. */
906 vcn = rl->vcn; 906 vcn = rl->vcn;
907 rl = ntfs_find_vcn_nolock(ni, vcn, FALSE); 907 rl = ntfs_attr_find_vcn_nolock(ni, vcn, FALSE);
908 if (IS_ERR(rl)) { 908 if (IS_ERR(rl)) {
909 err = PTR_ERR(rl); 909 err = PTR_ERR(rl);
910 if (!is_rollback) 910 if (!is_rollback)