aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/xattr.c
diff options
context:
space:
mode:
authorVladimir Saveliev <vs@namesys.com>2007-10-16 04:25:14 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:42:56 -0400
commitba9d8cec6c7165e440f9b2413a0464cf3c12fb25 (patch)
tree7fc05b10cdd18da51fce987b3323754ecdc53973 /fs/reiserfs/xattr.c
parent797b4cffdf79b9ed66759b8d2d5252eba965fb18 (diff)
reiserfs: convert to new aops
Convert reiserfs to new aops Signed-off-by: Vladimir Saveliev <vs@namesys.com> Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs/xattr.c')
-rw-r--r--fs/reiserfs/xattr.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c
index bf6e58214538..fab4b9b2664f 100644
--- a/fs/reiserfs/xattr.c
+++ b/fs/reiserfs/xattr.c
@@ -426,6 +426,12 @@ static inline __u32 xattr_hash(const char *msg, int len)
426 return csum_partial(msg, len, 0); 426 return csum_partial(msg, len, 0);
427} 427}
428 428
429int reiserfs_commit_write(struct file *f, struct page *page,
430 unsigned from, unsigned to);
431int reiserfs_prepare_write(struct file *f, struct page *page,
432 unsigned from, unsigned to);
433
434
429/* Generic extended attribute operations that can be used by xa plugins */ 435/* Generic extended attribute operations that can be used by xa plugins */
430 436
431/* 437/*
@@ -512,15 +518,15 @@ reiserfs_xattr_set(struct inode *inode, const char *name, const void *buffer,
512 rxh->h_hash = cpu_to_le32(xahash); 518 rxh->h_hash = cpu_to_le32(xahash);
513 } 519 }
514 520
515 err = mapping->a_ops->prepare_write(fp, page, page_offset, 521 err = reiserfs_prepare_write(fp, page, page_offset,
516 page_offset + chunk + skip); 522 page_offset + chunk + skip);
517 if (!err) { 523 if (!err) {
518 if (buffer) 524 if (buffer)
519 memcpy(data + skip, buffer + buffer_pos, chunk); 525 memcpy(data + skip, buffer + buffer_pos, chunk);
520 err = 526 err =
521 mapping->a_ops->commit_write(fp, page, page_offset, 527 reiserfs_commit_write(fp, page, page_offset,
522 page_offset + chunk + 528 page_offset + chunk +
523 skip); 529 skip);
524 } 530 }
525 unlock_page(page); 531 unlock_page(page);
526 reiserfs_put_page(page); 532 reiserfs_put_page(page);