search for: ocfs2_max_inline_data_with_xattr

Displaying 5 results from an estimated 5 matches for "ocfs2_max_inline_data_with_xattr".

2009 Mar 05
3
[PATCH 0/2] ocfs2: two bug fixes about xattr and inline-data V2
Hi, Thanks Tao and Joel's review, These are the second version of the patches. Mark and Joel, you can correct my comments if you find they don't suitable. thanks, tiger
2009 Mar 04
5
[PATCH 0/2] ocfs2: two bug fixes about xattr and inline-data
Mark and Joel, I found two serious bugs about xattr and inline-data. the first bug: in ocfs2_mknod(), we check and found the ACL or security xattr entry could be set into inode in ocfs2_calc_xattr_init(), then don't reserve block for them. But in ocfs2_mknod_locked(), if we found ocfs2 support inline-data, then set id_count with the max_inline_data. After that, we set acl/security xattr
2009 Jul 13
1
[PATCH 1/1] adds mlogs to aops.c
...pace *mapping, * Check whether the inode can accept inline data. */ if (oi->ip_clusters != 0 || i_size_read(inode) != 0) - return 0; - + goto out; /* * Check whether the write can fit. */ di = (struct ocfs2_dinode *)wc->w_di_bh->b_data; if (mmap_page || end > ocfs2_max_inline_data_with_xattr(inode->i_sb, di)) - return 0; + goto out; do_inline_write: ret = ocfs2_write_begin_inline(mapping, inode, wc); @@ -1606,7 +1720,11 @@ do_inline_write: */ written = 1; out: - return written ? written : ret; + if (written) + ret = written; + + mlog_exit(ret); + return ret; } /* @...
2009 Jul 21
1
(no subject)
...pace *mapping, * Check whether the inode can accept inline data. */ if (oi->ip_clusters != 0 || i_size_read(inode) != 0) - return 0; - + goto out; /* * Check whether the write can fit. */ di = (struct ocfs2_dinode *)wc->w_di_bh->b_data; if (mmap_page || end > ocfs2_max_inline_data_with_xattr(inode->i_sb, di)) - return 0; + goto out; do_inline_write: ret = ocfs2_write_begin_inline(mapping, inode, wc); @@ -1606,7 +1728,11 @@ do_inline_write: */ written = 1; out: - return written ? written : ret; + if (written) + ret = written; + + mlog_exit(ret); + return ret; } /* @...
2009 Jul 21
1
[PATCH 1/1] ocfs2: adds mlogs to aops.c -V2
...pace *mapping, * Check whether the inode can accept inline data. */ if (oi->ip_clusters != 0 || i_size_read(inode) != 0) - return 0; - + goto out; /* * Check whether the write can fit. */ di = (struct ocfs2_dinode *)wc->w_di_bh->b_data; if (mmap_page || end > ocfs2_max_inline_data_with_xattr(inode->i_sb, di)) - return 0; + goto out; do_inline_write: ret = ocfs2_write_begin_inline(mapping, inode, wc); @@ -1606,7 +1728,11 @@ do_inline_write: */ written = 1; out: - return written ? written : ret; + if (written) + ret = written; + + mlog_exit(ret); + return ret; } /* @...