projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: Strip pointless macro wrapping
[yaffs2.git]
/
yaffs_vfs_single.c
diff --git
a/yaffs_vfs_single.c
b/yaffs_vfs_single.c
index d5b875314005a36afe115ba7abd656bf6b3eff39..2cd604769db07aad88d20a5f52cfa69bce1ed148 100644
(file)
--- a/
yaffs_vfs_single.c
+++ b/
yaffs_vfs_single.c
@@
-59,9
+59,6
@@
#include <linux/statfs.h>
#include <linux/statfs.h>
-#define UnlockPage(p) unlock_page(p)
-#define Page_Uptodate(page) test_bit(PG_uptodate, &(page)->flags)
-
#define yaffs_devname(sb, buf) bdevname(sb->s_bdev, buf)
#define YPROC_ROOT NULL
#define yaffs_devname(sb, buf) bdevname(sb->s_bdev, buf)
#define YPROC_ROOT NULL
@@
-1177,7
+1174,7
@@
static int yaffs_readpage_nolock(struct file *f, struct page *pg)
static int yaffs_readpage_unlock(struct file *f, struct page *pg)
{
int ret = yaffs_readpage_nolock(f, pg);
static int yaffs_readpage_unlock(struct file *f, struct page *pg)
{
int ret = yaffs_readpage_nolock(f, pg);
-
UnlockP
age(pg);
+
unlock_p
age(pg);
return ret;
}
return ret;
}
@@
-1334,7
+1331,7
@@
static int yaffs_write_begin(struct file *filp, struct address_space *mapping,
}
yaffs_trace(YAFFS_TRACE_OS,
"start yaffs_write_begin index %d(%x) uptodate %d",
}
yaffs_trace(YAFFS_TRACE_OS,
"start yaffs_write_begin index %d(%x) uptodate %d",
- (int)index, (int)index, Page
_
Uptodate(pg) ? 1 : 0);
+ (int)index, (int)index, PageUptodate(pg) ? 1 : 0);
/* Get fs space */
space_held = yaffs_hold_space(filp);
/* Get fs space */
space_held = yaffs_hold_space(filp);
@@
-1346,7
+1343,7
@@
static int yaffs_write_begin(struct file *filp, struct address_space *mapping,
/* Update page if required */
/* Update page if required */
- if (!Page
_
Uptodate(pg))
+ if (!PageUptodate(pg))
ret = yaffs_readpage_nolock(filp, pg);
if (ret)
ret = yaffs_readpage_nolock(filp, pg);
if (ret)