op_data->op_data = lmm;
op_data->op_data_size = lmmsize;
- if (parent == de) {
- /*
- * Fixup for NFS export open.
- *
- * We're called in the context of NFS export, and parent
- * unknown, use parent fid saved in lli_pfid which will
- * be used by MDS to create data.
- */
- struct ll_inode_info *lli = ll_i2info(de->d_inode);
-
- spin_lock(&lli->lli_lock);
- op_data->op_fid1 = lli->lli_pfid;
- spin_unlock(&lli->lli_lock);
-
- LASSERT(fid_is_sane(&op_data->op_fid1));
- /** We ignore parent's capability temporary. */
- if (op_data->op_capa1 != NULL) {
- capa_put(op_data->op_capa1);
- op_data->op_capa1 = NULL;
- }
- }
-
rc = md_intent_lock(sbi->ll_md_exp, op_data, itp, &req,
&ll_md_blocking_ast, 0);
ll_finish_md_op_data(op_data);
struct hlist_head *lli_remote_perms;
struct mutex lli_rmtperm_mutex;
- /* identifying fields for both metadata and data stacks. */
- struct lu_fid lli_fid;
- /* Parent fid for accessing default stripe data on parent directory
- * for allocating OST objects after a mknod() and later open-by-FID. */
- struct lu_fid lli_pfid;
+ /* identifying fields for both metadata and data stacks. */
+ struct lu_fid lli_fid;
+ /* master inode fid for stripe directory */
+ struct lu_fid lli_pfid;
struct list_head lli_close_list;
struct list_head lli_oss_capas;
/* open count currently used by capability only, indicate whether
* capability needs renewal */
- atomic_t lli_open_count;
- struct obd_capa *lli_mds_capa;
- cfs_time_t lli_rmtperm_time;
-
- /* handle is to be sent to MDS later on done_writing and setattr.
- * Open handle data are needed for the recovery to reconstruct
- * the inode state on the MDS. XXX: recovery is not ready yet. */
- struct obd_client_handle *lli_pending_och;
-
- /* We need all three because every inode may be opened in different
- * modes */
- struct obd_client_handle *lli_mds_read_och;
- struct obd_client_handle *lli_mds_write_och;
- struct obd_client_handle *lli_mds_exec_och;
- __u64 lli_open_fd_read_count;
- __u64 lli_open_fd_write_count;
- __u64 lli_open_fd_exec_count;
- /* Protects access to och pointers and their usage counters */
+ atomic_t lli_open_count;
+ struct obd_capa *lli_mds_capa;
+ cfs_time_t lli_rmtperm_time;
+
+ /* handle is to be sent to MDS later on done_writing and setattr.
+ * Open handle data are needed for the recovery to reconstruct
+ * the inode state on the MDS. XXX: recovery is not ready yet. */
+ struct obd_client_handle *lli_pending_och;
+
+ /* We need all three because every inode may be opened in different
+ * modes */
+ struct obd_client_handle *lli_mds_read_och;
+ struct obd_client_handle *lli_mds_write_och;
+ struct obd_client_handle *lli_mds_exec_och;
+ __u64 lli_open_fd_read_count;
+ __u64 lli_open_fd_write_count;
+ __u64 lli_open_fd_exec_count;
+ /* Protects access to och pointers and their usage counters */
struct mutex lli_och_mutex;
struct inode lli_vfs_inode;