git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
fs
/
ntfs
/
quota.c
diff --git
a/fs/ntfs/quota.c
b/fs/ntfs/quota.c
index
b72a85d
..
833df2a
100644
(file)
--- a/
fs/ntfs/quota.c
+++ b/
fs/ntfs/quota.c
@@
-22,9
+22,10
@@
#ifdef NTFS_RW
#ifdef NTFS_RW
-#include "ntfs.h"
#include "index.h"
#include "quota.h"
#include "index.h"
#include "quota.h"
+#include "debug.h"
+#include "ntfs.h"
/**
* ntfs_mark_quotas_out_of_date - mark the quotas out of date on an ntfs volume
/**
* ntfs_mark_quotas_out_of_date - mark the quotas out of date on an ntfs volume
@@
-51,7
+52,7
@@
BOOL ntfs_mark_quotas_out_of_date(ntfs_volume *vol)
ictx = ntfs_index_ctx_get(NTFS_I(vol->quota_q_ino));
if (!ictx) {
ntfs_error(vol->sb, "Failed to get index context.");
ictx = ntfs_index_ctx_get(NTFS_I(vol->quota_q_ino));
if (!ictx) {
ntfs_error(vol->sb, "Failed to get index context.");
-
return FALSE
;
+
goto err_out
;
}
err = ntfs_index_lookup(&qid, sizeof(qid), ictx);
if (err) {
}
err = ntfs_index_lookup(&qid, sizeof(qid), ictx);
if (err) {
@@
-107,7
+108,8
@@
done:
ntfs_debug("Done.");
return TRUE;
err_out:
ntfs_debug("Done.");
return TRUE;
err_out:
- ntfs_index_ctx_put(ictx);
+ if (ictx)
+ ntfs_index_ctx_put(ictx);
up(&vol->quota_q_ino->i_sem);
return FALSE;
}
up(&vol->quota_q_ino->i_sem);
return FALSE;
}