projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fb6de2
)
minix: fix add link's wrong position calculation
author
Evgeniy Dushistov
<
[email protected]
>
Tue, 6 Jan 2009 22:42:38 +0000
(14:42 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 6 Jan 2009 23:59:27 +0000
(15:59 -0800)
Fix the add link method. The oosition in the directory was calculated in
wrong way - it had the incorrect shift direction.
[
[email protected]
: coding-style fixes]
Signed-off-by: Evgeniy Dushistov <
[email protected]
>
Cc: Nick Piggin <
[email protected]
>
Cc: <
[email protected]
> [2.6.lots]
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/minix/dir.c
patch
|
blob
|
history
diff --git
a/fs/minix/dir.c
b/fs/minix/dir.c
index f70433816a3806ab6846b75dec1ee418fcd75f2c..d4946c4c90e2f2b989f410fc3b69552a382303f4 100644
(file)
--- a/
fs/minix/dir.c
+++ b/
fs/minix/dir.c
@@
-280,7
+280,7
@@
int minix_add_link(struct dentry *dentry, struct inode *inode)
return -EINVAL;
got_it:
- pos =
(page->index >> PAGE_CACHE_SHIFT) + p - (char
*)page_address(page);
+ pos =
page_offset(page) + p - (char
*)page_address(page);
err = __minix_write_begin(NULL, page->mapping, pos, sbi->s_dirsize,
AOP_FLAG_UNINTERRUPTIBLE, &page, NULL);
if (err)