| To: | linux-xfs@xxxxxxxxxxx |
|---|---|
| Subject: | Why xfs_change_file_space is synchronous |
| From: | Shailendra Tripathi <stripathi@xxxxxxxxx> |
| Date: | Wed, 22 Mar 2006 18:22:08 +0530 |
| In-reply-to: | <20060322045620.319864A53FC7@chook.melbourne.sgi.com> |
| References: | <20060322045620.319864A53FC7@chook.melbourne.sgi.com> |
| Sender: | linux-xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla Thunderbird 0.9 (X11/20041127) |
|
Hi, While looking at xfs_change_file_space, I noticed that the transaction is made synchronous. xfs_change_file_space()
...
if (setprealloc)
ip->i_d.di_flags |= XFS_DIFLAG_PREALLOC;
else if (clrprealloc)
ip->i_d.di_flags &= ~XFS_DIFLAG_PREALLOC; xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);
xfs_trans_set_sync(tp); --> Why do we need to make it synchronous ?
Why this transaction is made synchronous. I can't think of the scenario where log will not be able to recover this if it is asynchronous. What might be the potential reason for making it synchronous ? Regards, Shailendra |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | TAKE 904196 - build fix, Nathan Scott |
|---|---|
| Next by Date: | TAKE 904196 - fix typos, Nathan Scott |
| Previous by Thread: | TAKE 904196 - build fix, Nathan Scott |
| Next by Thread: | TAKE 904196 - fix typos, Nathan Scott |
| Indexes: | [Date] [Thread] [Top] [All Lists] |