summaryrefslogtreecommitdiff
path: root/yaffs_nameval.h
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2010-09-09 09:20:23 +1200
committerCharles Manning <cdhmanning@gmail.com>2010-09-09 09:20:23 +1200
commitde6470acd795b2daab5372dd4a9edce3f186afea (patch)
tree0e136a0e66b52ba05f8804d25fc8bce94de0ace2 /yaffs_nameval.h
parent0035e396dc2b872289b8e6320ced59e2eea81962 (diff)
yaffs: Cache object xattrib state.
We cache whether or not an object has xattributes. This is done to get around the problem of the Linux VFS trying to check security capabilities on every write. Assuming that most files don't have security attributes, this code will save on a huge amount of reads and make writing faster. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_nameval.h')
-rw-r--r--yaffs_nameval.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/yaffs_nameval.h b/yaffs_nameval.h
index a9d4a0a..4255f3b 100644
--- a/yaffs_nameval.h
+++ b/yaffs_nameval.h
@@ -21,7 +21,5 @@ int nval_del(char *xb, int xb_size, const YCHAR *name);
int nval_set(char *xb, int xb_size, const YCHAR *name, const char *buf, int bsize, int flags);
int nval_get(const char *xb, int xb_size, const YCHAR *name, char *buf, int bsize);
int nval_list(const char *xb, int xb_size, char *buf, int bsize);
-int nval_load(char *xb, int xb_size, const char *src, int src_size);
-int nval_save(const char *xb, int xb_size, char *dest, int dest_size);
-
+int nval_hasvalues(const char *xb, int xb_size);
#endif